package cupk.abner.ConcreteDecorator;

import cupk.abner.Component;
import cupk.abner.ComponentDecorator;

public class ScrollBar extends ComponentDecorator {
    public ScrollBar(Component component) {
        super(component);
    }

    @Override
    public void display() {
        super.display();
        this.setScrollBar();
    }
    public void setScrollBar(){
        System.out.println("增加滚动条");
    }
}